﻿using System;
using System.Net;

namespace Airport
{
    public class VehicleType
    {

        private int _vehicleTypeId;
        private string _typeName;
        private int _length;
        private int _width;

        public VehicleType()
            : this(-1, "", -1, -1)
        {
        }

        public VehicleType(int inVehicleTypeId, string inTypeName, int inLength, int inWidth)
        {
            _vehicleTypeId = inVehicleTypeId;
            _typeName = inTypeName;
            _length = inLength;
            _width = inWidth;
        }

        public int vehicleTypeId
        {
            get
            {
                return _vehicleTypeId;
            }

            set
            {
                if (_vehicleTypeId != value)
                {
                    _vehicleTypeId = value;
                }
            }
        }
 
        public string typeName
        {
            get
            {
                return _typeName;
            }

            set
            {
                if (_typeName != value)
                {
                    _typeName = value;
                }
            }
        }

        public int length
        {
            get
            {
                return _length;
            }

            set
            {
                if (_length != value)
                {
                    _length = value;
                }
            }
        }
 
        public int width
        {
            get
            {
                return _width;
            }

            set
            {
                if (_width != value)
                {
                    _width = value;
                }
            }
        }
    }
}
